const Core = require('@alicloud/pop-core');

var client = new Core({
  accessKeyId: '4ARIlVPcg2JhQO96',
  accessKeySecret: 'tFcvps74lKLEtdlIOBltL37wYoVWby',
  endpoint: 'https://dysmsapi.aliyuncs.com',
  apiVersion: '2017-05-25'
})

var params = {
  "RegionId": "cn-hangzhou",
  "PhoneNumbers": "15072455411",
  "SignName": "酷享科技",
  "TemplateCode": "SMS_208965146",
  "TemplateParam": "{\"code\":\"123456\"}"
}

client.request('SendSms',params,{method:'POST'}).then((result)=>
{//正确
  console.log('result',JSON.stringify(result));
},(ex)=>{//错误
  console.log('ex',ex);
})


